﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="WanPiJie.WebSite.Products.Detail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>
		<%= this.SalesInfoExtension.Title %></title>
	<link href="http://static.wanpijie.com/styles/global.css" rel="stylesheet" type="text/css" />
	<link href="http://static.wanpijie.com/styles/www.css" rel="stylesheet" type="text/css" />
	<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.min.js" type="text/javascript"></script>
	<script src="http://static.wanpijie.com/scripts/jquery.cookie.min.js" type="text/javascript"></script>
	<script src="http://static.wanpijie.com/scripts/global.js" type="text/javascript"></script>
	<script language="c#" runat="server">
		int x = 0;
	</script>
	<style type="text/css">
		.pdt-img
		{
			float: left;
			width: 350px;
			height: 350px;
		}
		
		.pdt-info
		{
			margin-left: 350px;
		}
		
		.pdt-detail .title
		{
			padding: 10px 100px 10px 0;
			font-size: 18px;
		}
		
		.pdt-detail .tags
		{
			padding: 10px 0;
		}
		
		.pdt-price
		{
			margin-top: 20px;
			padding: 10px 0;
		}
		
		.pdt-buy
		{
		}
		
		.guess
		{
			clear: both;
		}
		
		p.position
		{
			line-height: 32px;
			padding-left: 10px;
		}
	</style>
</head>
<body>
	<form id="form1" runat="server">
	<wpj:SiteHeader ID="SiteHeader" runat="server" />
	<div id="mainContent" class="wrap pdt-detail">
		<p class="position b" style="margin-bottom: 10px;">
			<a href="/">顽皮街</a> &gt;
			<%=this.SalesInfoExtension.CatalogId!=4? this.GetCatalog(this.SalesInfoExtension.CatalogId).ToString():this.SalesInfoExtension.Attributes[22].ToString()%>
		</p>
		<div class="pdt-img">
			<img alt="<%=this.SalesInfoExtension.Title%>" src="http://static.wanpijie.com/Pdt/<%=this.SalesInfoExtension.CatalogId%>/<%=this.SalesInfoExtension.SerialNumber%>/310-310.jpg" width="300px" height="300px" />
		</div>
		<div class="pdt-info">
			<p class="title bb">
				<%= this.SalesInfoExtension.Title %>
			</p>
			<p class="tags">
				标签：
				<%foreach (long key in this.SalesInfoExtension.Attributes.Keys)%>
				<%{%>
				<% this.Response.Write(string.Format("{0}	", this.SalesInfoExtension.Attributes[key]));%>
				<%}%>
			</p>
			<span>卖家：<a href="Go.aspx?x=<%=this.SalesInfoExtension.SerialNumber%>&s=x" target="_blank"><%= this.SalesInfoExtension.SellerNick %></a></span><br />
			<%if(this.SalesInfoExtension.SellerCreditScore!=0 {%>
			<span>信用：<img src="<%=this.GetCreditImage()%>" alt="信誉等级" /></span><br />
			<%} %>
			<span>最近销量：<%= this.SalesInfoExtension.Volume%>
			</span>
			<p class="pdt-price bt">
				价格： ￥ <span style="color: #FF3300; font-size: 20px;">
					<%= this.SalesInfoExtension.Price %></span>
			</p>
			<p class="pdt-buy">
				<a href="Go.aspx?x=<%=this.SalesInfoExtension.SerialNumber%>" target="_blank">
					<img src="http://static.wanpijie.com/images/tbbuy.png" alt="去淘宝购买" />
				</a>
			</p>
		</div>
		<div class="guess">
			<h2>
				猜你喜欢</h2>
			<ul class="box-list index-pdt-list">
				<asp:Repeater ID="rptProductList" runat="server">
					<ItemTemplate>
						<li class="box <%= (++x % 4 == 1 ? "first" : "") %>"><a href="Detail.aspx?ItemId=<%# Eval("SerialNumber") %>" target="_blank">
							<img src="http://static.wanpijie.com/Pdt/<%#Eval("CatalogId")%>/<%# Eval("SerialNumber")%>/168-168.jpg" width="168px" height="168px" alt="<%# Eval("Title")%>" />
						</a>
							<ul class="attribute">
								<li class="trade-num">♥
									<%# Eval("Volume") %></li>
								<li class="price">￥<%# Eval("Price") %></li>
							</ul>
							<span><a href="Detail.aspx?ItemId=<%# Eval("SerialNumber") %>" target="_blank">
								<%# Eval("Title") %></a> </span></li>
						</li>
					</ItemTemplate>
				</asp:Repeater>
			</ul>
		</div>
	</div>
	<wpj:SiteFooter ID="SiteFooter" runat="server" />
	</form>
</body>
</html>
